package me.zhengjie.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author Long
 * @date 2021/7/7 9:39
 */
@Data
@ApiModel(value = "PageDto", description = "分页参数查询Dto")
public class PageDto {

    @ApiModelProperty("当前页码")
    @NotNull(message = "当前页码不可为空")
    private Integer current;

    @ApiModelProperty("当前页码条数")
    @NotNull(message = "当前页码条数不可为空")
    private Integer size;

    @ApiModelProperty("排序字段")
    private String sort;

    @ApiModelProperty("排序规则")
    private String sortRule;

}
